myApp.controller('asset_update', function ($scope, $uibModalInstance,formBoxData,httpService) {
	
	/*关闭的图片*/
	$scope.closeImg={'img':'images/close-default.png','defaultImg':'images/close-default.png','downImg':'images/close-btndown.png','hoverImg':'images/close-hover.png'};
	$scope.title=formBoxData.title;
	$scope.formData=formBoxData.formData;
	$scope.ok = function () {
		$uibModalInstance.close($scope.formData);
	};
	
	$scope.cancel = function () {
		$uibModalInstance.dismiss('cancel');
	};
	
	$scope.operationTitle=[
		{
			name:'处理时间',
			filed:'createTime',
			width:'20%'
		},
		{
			name:'处理人',
			filed:'userId',
			width:'15%'
		},
		{
			name:'处理方式',
			filed:'dealStatus',
			width:'20%'
		},
		{
			name:'处理内容',
			filed:'dealContent',
			width:'20%'
		},
		{
			name:'备注',
			filed:'remark',
			width:'19%'
		}
	];
	$scope.operationData=[];
	$scope.operationFlag=false;
	$scope.operationPageData={
		currentPage:1,
		totalResult:0,
		showCount:5
	};
	$scope.moreOperationData=function(){
		$scope.operationFlag=true;
		httpService.getAssetsOperation($scope.operationPageData).then(function(res){
			var page=res.data.data
			$scope.operationData=page.data;
			$scope.operationPageData.totalResult = page.totalResult;
		});
	};
	
	$scope.moreOperationData();
});